<%--
  Created by IntelliJ IDEA.
  User: Jia_ly
  Date: 2017/2/24
  Time: 11:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path;
    request.setAttribute("basePath", basePath);
%>
<%@ include file="../frame/head.jsp" %>
<html>
<head>
    <title>试题详情</title>
</head>
<body>
<section>
    <%@include file="../frame/top.jsp" %>
    <section class="boxMain">
        <section class="hbox stretch">
            <%@include file="../frame/aside.jsp" %>
            <div>
                <header>
                    <h3 style="color: #0b6cbc;text-align: center">试题详情</h3>
                </header>
                <hr>
                <div style="font-size: 18px;margin: 25px;">
                    <table class="table">
                        <tr>
                            <td>试题名称:</td>
                            <td>${question.questionName}</td>
                        </tr>
                        <tr>
                            <td>试题描述:</td>
                            <td>${question.questionDescribe}</td>
                        </tr>
                        <tr>
                            <td>答案选项：</td>
                            <td>${question.answer.answerOption}</td>
                        </tr>
                        <tr>
                            <td>正确答案：</td>
                            <td>${question.questionAnswer}</td>
                        </tr>
                        <tr>
                            <td>知识点名称：</td>
                            <td>${question.knowledgePoint.pointName}</td>
                        </tr>
                        <tr>
                            <td>知识点描述：</td>
                            <td>${question.knowledgePoint.pointDescribe}</td>
                        </tr>
                        <tr><td></td><td></td></tr>
                    </table>
                    <button onclick="goBack()" class="btn btn-primary" style="width:100px;">返回</button>
                </div>
            </div>
        </section>
    </section>
</section>
</body>
</html>
<script>
    function goBack(){
        location.href = "${basePath}/question/questionLists";
    }
</script>